import { Injectable, NestMiddleware } from '@nestjs/common';

@Injectable()
export class LogMiddleware implements NestMiddleware {
  use(req: any, res: any, next: () => void) {
    console.log('url----',req.url);
    console.log('method----',req.method);
    console.log('params----',req.params);
    console.log('query----',req.query);
    next();
  }
}
